43b748287eb40361ff9727db4d6d2e0c2cc765fd,main/plugins/org.talend.mdm.commmon/src/main/java/org/talend/mdm/commmon/util/core/MDMConfiguration.java,MDMConfiguration,getProperties,#boolean#boolean#,85

Before Change


                PropertiesConfiguration config = new PropertiesConfiguration();
                config.setDelimiterParsingDisabled(true);
                config.load(file);
                String adminPassword = (String) config.getProperty(ADMIN_PASSWORD);
                String tPassword = (String) config.getProperty(TECHNICAL_PASSWORD);
                boolean isUpdated = false;
                if (adminPassword != null && !adminPassword.endsWith(Crypt.ENCRYPT)) {
                    adminPassword = Crypt.encrypt(adminPassword);
                    config.setProperty(ADMIN_PASSWORD, adminPassword);
                    isUpdated = true;
                }
                if (tPassword != null && !tPassword.endsWith(Crypt.ENCRYPT)) {
                    tPassword = Crypt.encrypt(tPassword);
                    config.setProperty(TECHNICAL_PASSWORD, tPassword);
                    isUpdated = true;
                }
                if (isUpdated) {

After Change


                config.setDelimiterParsingDisabled(true);
                config.load(file);
                // Decrypt the passwords in mdm.conf
                config.setProperty(ADMIN_PASSWORD, Crypt.decrypt(config.getString(ADMIN_PASSWORD)));
                config.setProperty(TECHNICAL_PASSWORD, Crypt.decrypt(config.getString(TECHNICAL_PASSWORD)));
                properties = ConfigurationConverter.getProperties(config);
            } catch (Exception e) {